﻿@model DroidClaim.Web.Models.CliamDocModel
@using DroidClaim.Web.CustomHelpers
@using DroidClaim.Web.Mapper
@{
    ViewBag.Title = "Add CliamDoc";
    Layout = "~/Views/Shared/_Layout.cshtml"; 
}

@section Styles {
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/form.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.datepicker.css")" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        $(function () {
            //How to setup Datepicker
            // SetDatePicker has 4 argurement
            // controlId -> id of control
            // maxdate -> maximun Date that can be selected 
            // mindate -> minimum Date that can be selected 
            // yearrange - > range of year
            // more information see http://api.jqueryui.com/datepicker/
                        //ถ้าไม่มีกำหนด maxdate, mindate, yearrange
            SetDatePicker("FreeDate");


            //How to setup Lookup
            // SetLookupFor has 3 argurement
            // controlId -> id of control
            // getLookupId -> hidden control's id for getlookup link
            // popLookupId -> hidden control's id for poplookup link
            
        });
    </script>
}

<h2>New CliamDoc</h2>


@using (Html.BeginForm("AddCliamDoc", "CliamDoc")) {
    @Html.ValidationSummary(false)
    <fieldset>
        <legend>CliamDocModel</legend>
		<div class="two-column-container">		
					
			 
			
						<div class="texteditor">
				@Html.LabelFor(model => model.CliamDocImgPath)
				@Html.EditorFor(model => model.CliamDocImgPath)
							</div>

						 
			
						<div class="texteditor">
				@Html.LabelFor(model => model.Code)
				@Html.EditorFor(model => model.Code)
				<input type="hidden" name="Mode" value="Add" />			</div>

								
					
			 
			
						<div class="texteditor">
				@Html.LabelFor(model => model.Name)
				@Html.EditorFor(model => model.Name)
							</div>

								
		</div>
		
				       
        <div class="bottom-menu clear">
            <input type="submit" value="Add" />
            <input id="cancel" onclick="location.href='@Url.Action("ListCliamDoc", "CliamDoc")'" type="button" value="Cancel" />
        </div>
    </fieldset>
}